// app/procurement/dashboard/page.tsx
import * as React from "react";
import { Skeleton } from "@/components/ui/skeleton";
import { Shell } from "@/components/shell";
import { ErrorBoundary } from "@/components/error-boundary";
import { getDashboardData } from "@/lib/dashboard/service";
import { DashboardClient } from "@/lib/dashboard/dashboard-client";
// 대시보드 데이터 로딩 컴포넌트
async function DashboardContent() {
try {
const data = await getDashboardData("engineering");
const handleRefresh = async () => {
"use server";
return await getDashboardData("engineering");
};
return (
{error.message || "알 수 없는 오류가 발생했습니다."}